#pragma once

const int TaskSize = 3;
void Print()
{
    std::cout << "I am print task" << std::endl;
}
void Flush()
{
    std::cout << "I am flush task" << std::endl;
}
void download()
{
    std::cout << "I am download task" << std::endl;
}

typedef void (*task_t)();
task_t taskTable[TaskSize];
void InitTask()
{
    srand(time(nullptr));
    taskTable[0] = Print;
    taskTable[1] = Flush;
    taskTable[2] = download;
}
